package com.hjt.gulimall.ware.feign;

import com.hjt.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 订单服务远程调用
 * @author:97007
 * @date:2021/10/14 11:37
 */
@FeignClient("gulimall-order")
public interface OrderFeignService {

    // 根据订单号,获取订单信息
    @GetMapping("/order/order/getByOrderSn/{orderSn}")
    R getOrderByOrderSn(@PathVariable("orderSn") String orderSn);


}
